<div class="breadcrumbwidget">
	<ul class="skins">
        <li><a href="default" class="skin-color default"></a></li>
        <li><a href="orange" class="skin-color orange"></a></li>
        <li>&nbsp;</li>
        <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
        <li class="wide"><a href="" class="skin-layout wide"></a></li>
    </ul><!--skins-->
	<ul class="breadcrumb">
        <li><a href="<?php echo $baseurl?>">Trang chủ</a> <span class="divider">/</span></li>
        <li class="active">Thống kê down App</li>
    </ul>
</div><!--breadcrumbwidget-->
<div class="pagetitle">
	<h1>Thống kê down App</h1> <span></span>
</div>
<div class="maincontent">
    <div class="contentinner">    
    
        <?php $attr = array('class' => 'stdform','id' => 'form-list'); echo form_open('', $attr);?>
        <div id="dyntable_length" class="dataTables_length  content-dashboard">
        <input type="hidden" name="check-delete" value="1" />
		<span> Tổng số máy đã cài : <b><?php echo $count ? $count : '0';?></b>, máy iPhone : <b><?php echo $count_iphone ? $count_iphone : '0';?></b>, máy Android : <b><?php echo $count_android ? $count_android : '0';?></b></span>
        </div>
    	<table class="table table-bordered">
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
            </colgroup>
            <thead>
                <tr>
                	<th class="centeralign" style="width: 5%;"><input type="checkbox" class="checkall" /></th>
                    <!-- <th style="width: 8%;">STT</th> -->
                    <th>Ngày tháng</th>
                    <th>Tổng số máy cài</th>
                    <th>Máy iOS</th>
					<th>Máy android</th>
                </tr>
            </thead>
            <tbody>
            <?php if(!in_array($data, array(null, '', '0'))):?>
            <?php foreach($data AS $el=>$le):?>
                <tr>
                	<td class="centeralign"><input name="checkboxs[]" id="" type="checkbox" value="" /></td>
                    <td><?php echo date("d-m-Y", strtotime($le->created)); ?></td>
                    <td><?php echo $le->count_total?></td>
					<td><?php echo $le->count_iphone?></td>
					<td><?php echo $le->count_android?></td>
					
                </tr>
            <?php endforeach;?>
            <?php endif?>
            </tbody>
        </table>
        <div class="dataTables_info" id="dyntable_info">
        
        </div>
        </form>
    </div>
</div>
